//
//  AlertCustomVCCell.m
//  AlumniBook
//
//  Created by 喂！ on 2018/10/31.
//  Copyright © 2018年 well. All rights reserved.
//

#import "AlertCustomVCCell.h"

@implementation AlertCustomVCCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self initFrame];
    }
    
    return self;
}

-(void)initFrame
{
    self.contentView.backgroundColor = [UIColor clearColor];
    self.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.showLabel];
    [self.showLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(self.contentView);
        make.height.mas_equalTo(45);
        make.bottom.mas_lessThanOrEqualTo(self.contentView).offset(-3);
    }];
    
}

-(void)setCellText:(NSString *)str
{
    self.showLabel.text = str;
}

#pragma mark    懒加载
-(UILabel *)showLabel
{
    if (!_showLabel) {
        _showLabel = [UILabel new];
        _showLabel = [[UILabel alloc] init];
        _showLabel.backgroundColor = [UIColor whiteColor];
        _showLabel.textAlignment = NSTextAlignmentCenter;
        _showLabel.font = [UIFont systemFontOfSize:36 * SCREEN_SCALE];
        _showLabel.textColor = [UIColor colorWithRed:53/255.0f green:53/255.0f blue:53/255.0f alpha:1.0f];
        _showLabel.layer.cornerRadius = 3;
        _showLabel.layer.masksToBounds = true;
    }
    return _showLabel;
}

@end
